<% @videos.each do |video| %>
	<div id="video_<%= video.id %>" class="video_wrap">
		<div class="video_thumb">
			<%= link_to(output_thumbnail_img(video.thumbnail_url), video_path(video)) %>			
		</div>
		<div class="video_info">
			<h3><%= h video.title %></h3>
			<p class="video_desc"><%= h video.description %></p>
		</div>
		<div class="video_comment">
			<h4>Comments</h4>
			<p>
				<%= video.comments.first unless video.comments.nil? %>
			</p>
		</div>
		<br class="clear" />	
		<div class="hidden">
			<%= link_to 'Show', video %>
		    <%= link_to 'Edit', edit_video_path(video) %>
		    <%= link_to 'Destroy', video, :confirm => 'Are you sure?', :method => :delete %>
		</div>
	</div>
<% end %>